# -*- coding: utf-8 -*-
"""
API v1 路由配置 - 重构以匹配plus-ui接口结构
"""

from fastapi import APIRouter

# 认证模块
from app.api.v1.auth import auth

# 系统管理模块
from app.api.v1.system.user import user
from app.api.v1.system.menu import menu
# from app.api.v1.system.dept import dept
# from app.api.v1.system.role import role
# from app.api.v1.system.post import post
# from app.api.v1.system.dict import dict_type, dict_data
# from app.api.v1.system.config import config
# from app.api.v1.system.tenant import tenant
# from app.api.v1.system.tenantPackage import tenant_package
# from app.api.v1.system.notice import notice
# from app.api.v1.system.client import client
# from app.api.v1.system.social import social

# 资源管理模块
# from app.api.v1.resource.oss import oss
# from app.api.v1.resource.ossConfig import oss_config

# 监控模块
# from app.api.v1.monitor.logininfor import logininfor
# from app.api.v1.monitor.online import online
# from app.api.v1.monitor.operlog import operlog
# from app.api.v1.monitor.cache import cache

# 工具模块
# from app.api.v1.tool.gen import gen

# 工作流模块
# from app.api.v1.workflow.definition import definition
# from app.api.v1.workflow.category import category
# from app.api.v1.workflow.instance import instance
# from app.api.v1.workflow.task import task
# from app.api.v1.workflow.leave import leave

# 演示模块
# from app.api.v1.demo import demo

api_router = APIRouter()

# 认证相关 (/auth/*)
api_router.include_router(auth.router, prefix="/auth", tags=["Authentication"])

# 系统管理 (/system/*)
api_router.include_router(user.router, prefix="/system/user", tags=["User Management"])
api_router.include_router(menu.router, prefix="/system/menu", tags=["Menu Management"])
# api_router.include_router(dept.router, prefix="/system/dept", tags=["Department Management"])
# api_router.include_router(role.router, prefix="/system/role", tags=["Role Management"])
# api_router.include_router(post.router, prefix="/system/post", tags=["Post Management"])
# api_router.include_router(dict_type.router, prefix="/system/dict/type", tags=["Dictionary Type"])
# api_router.include_router(dict_data.router, prefix="/system/dict/data", tags=["Dictionary Data"])
# api_router.include_router(config.router, prefix="/system/config", tags=["System Configuration"])
# api_router.include_router(tenant.router, prefix="/system/tenant", tags=["Tenant Management"])
# api_router.include_router(tenant_package.router, prefix="/system/tenantPackage", tags=["Tenant Package"])
# api_router.include_router(notice.router, prefix="/system/notice", tags=["Notice Management"])
# api_router.include_router(client.router, prefix="/system/client", tags=["OAuth Client"])
# api_router.include_router(social.router, prefix="/system/social", tags=["Social Authentication"])

# 资源管理 (/resource/*)
# api_router.include_router(oss.router, prefix="/resource/oss", tags=["OSS Storage"])
# api_router.include_router(oss_config.router, prefix="/resource/oss/config", tags=["OSS Configuration"])

# 监控管理 (/monitor/*)
# api_router.include_router(logininfor.router, prefix="/monitor/logininfor", tags=["Login Information"])
# api_router.include_router(online.router, prefix="/monitor/online", tags=["Online Users"])
# api_router.include_router(operlog.router, prefix="/monitor/operlog", tags=["Operation Logs"])
# api_router.include_router(cache.router, prefix="/monitor/cache", tags=["Cache Monitoring"])

# 代码生成工具 (/tool/*)
# api_router.include_router(gen.router, prefix="/tool/gen", tags=["Code Generation"])

# 工作流管理 (/workflow/*)
# api_router.include_router(definition.router, prefix="/workflow/definition", tags=["Workflow Definition"])
# api_router.include_router(category.router, prefix="/workflow/category", tags=["Workflow Category"])
# api_router.include_router(instance.router, prefix="/workflow/instance", tags=["Workflow Instance"])
# api_router.include_router(task.router, prefix="/workflow/task", tags=["Workflow Task"])
# api_router.include_router(leave.router, prefix="/workflow/leave", tags=["Leave Application"])

# 演示模块 (/demo/*)
# api_router.include_router(demo.router, prefix="/demo", tags=["Demo"])